<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!--引入layui的样式文件-->
    <link rel="stylesheet" href="res/layui-v2.8.17/layui/css/layui.css">
</head>
<body>

<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">
            <img src="./img/logo.png" alt="" height="30px">
        </div>
        <!--右上角用户区域-->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                <a href="javascript:;">
                    <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img">
                    tester
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;">密码修改</a></dd>
                    <dd><a href="javascript:;">管理员信息</a></dd>
                    <dd><a href="javascript:;">安全退出</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">
                        <i class="layui-icon layui-icon-release"></i>
                        车辆管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-html="user-car.html">车辆列表</a></dd>
                        <dd><a href="javascript:;" data-html="car-control.html">车辆控制</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-app"></i>
                        品牌管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-html="brand-add.html">品牌新增</a></dd>
                        <dd><a href="javascript:;" id="blist" data-html="brand-list.html">品牌列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-theme"></i>
                        型号管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-html="product-add.html">新增汽车型号</a></dd>
                        <dd><a href="javascript:;" data-html="product-list.html">汽车型号列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-user"></i>
                        用户管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-html="user-list.html">用户列表</a></dd>
                        <dd><a href="javascript:;">黑名单</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-set"></i>
                        系统管理
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-html="admin-add.html">管理员添加</a></dd>
                        <dd><a href="javascript:;" data-html="admin-list.html">管理员列表</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;" id="content">

        </div>
    </div>
    <div class="layui-footer">
        <span style="display: block;text-align: center;color:#c2c2c2;">&copy; 武汉华夏理工学院</span>
    </div>
</div>
<!--引入layui的js文件-->
<script src="res/layui-v2.8.17/layui/layui.js"></script>
<script>
    layui.use(['jquery'],function(){
        //加载jquery模块
        let $ = layui.jquery;
        $('.layui-nav-child a').on('click',function(){
            //获取当前被点击的超链接上的data-html属性值
            let page = $(this).data('html');
            //加载指定页面到指定位置
            $('#content').load(page)
        })
    })
</script>
</body>
</html>